package com.huangpuweb.task.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NjdlTotalNumberRowMapper implements RowMapper<NjdlTotalNumber> {
    @Override
    public NjdlTotalNumber mapRow(ResultSet resultSet, int i) throws SQLException {
        NjdlTotalNumber nj = new NjdlTotalNumber();
        nj.setSpotName(resultSet.getString("spotName"));
        nj.setTimes(resultSet.getString("times"));
        nj.setTotal_number(resultSet.getString("total_number"));
        return nj;
    }
}
